<?if($this->query->count() > 0):?> 
	<?foreach($this->query->toArray() AS $result):?>
		<?if($result['is_public'] == 0 && !$this->hasAccess($result['uid'])): continue; endif;?>
		<tr class="board_boards category_<?=$result['category_uid']?>">
			<td class="board_title middle">
				<a href="<?=$this->url(array('controller' => 'threads', 'uid' => $result['uid'], 'title' => $this->escape($this->CleanUrlTitle($result['title']))), 'boards', true);?>">
					<?=$this->escape($result['title'])?>
				</a>
				<br />
				<span class="board_desc"><?=$this->BBCode($this->escape($result['desc']))?></span>
				<?=$this->partial('index/subboards.phtml', array('query' => $this->getSubBoards($result['uid']), 'translate' => $this->translate))?>
				<?=$this->GetBoardVisitors($result['uid'])?>
			
			</td>
			<td class="board_threads middle center"><?=$result['count_threads']?></td>
			<td class="board_posts middle center"><?=$result['count_posts']?></td>
			<td class="middle center board_last_post"><?=$this->getLastThread($result['last_post_uid'])?></td>
		</tr>
	<?endforeach;?>
<?else:?>
	<tr>
		<td colspan="4"><p class="notice"><?=$this->translate->_('error_boards')?></p></td>
	</tr>
<?endif;?>